package vip.hamlin.dnspod.bean;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * dnspod Record.Modify接口参数配置
 * Created by SunShao on 2016/6/4.
 */
@SuppressWarnings("unused")
@Configuration
@PropertySource("classpath:dnspod_update_record_config.properties")
public class DNSPodUpdateRecordRequest extends BaseBean {
    @Value("${domain_id}")
    private String domain_id;
    @Value("${domain}")
    private String domain;
    @Value("${record_id}")
    private String record_id;
    @Value("${sub_domain}")
    private String sub_domain;
    @Value("${record_type}")
    private String record_type;
    @Value("${record_line}")
    private String record_line;
    @Value("${value}")
    private String value;
    @Value("${mx}")
    private String mx;
    @Value("${ttl}")
    private String ttl;
    @Value("${status}")
    private String status;
    @Value("${weight}")
    private String weight;
    @Value("${update_record_path}")
    private String update_record_path;


    @Override
    public String toString() {
        return "domain_id=" + domain_id +
                "&domain=" + domain +
                "&record_id=" + record_id +
                "&sub_domain=" + sub_domain +
                "&record_type=" + record_type +
                "&record_line=" + record_line +
                "&value=" + value +
                "&mx=" + mx +
                "&ttl=" + ttl +
                "&status=" + status +
                "&weight=" + weight;
    }

    public String getUpdate_record_path() {
        return update_record_path;
    }

    public void setUpdate_record_path(String update_record_path) {
        this.update_record_path = update_record_path;
    }

    public String getDomain_id() {
        return domain_id;
    }

    public void setDomain_id(String domain_id) {
        this.domain_id = domain_id;
    }

    public String getDomain() {
        return domain;
    }

    public void setDomain(String domain) {
        this.domain = domain;
    }

    public String getRecord_id() {
        return record_id;
    }

    public void setRecord_id(String record_id) {
        this.record_id = record_id;
    }

    public String getSub_domain() {
        return sub_domain;
    }

    public void setSub_domain(String sub_domain) {
        this.sub_domain = sub_domain;
    }

    public String getRecord_type() {
        return record_type;
    }

    public void setRecord_type(String record_type) {
        this.record_type = record_type;
    }

    public String getRecord_line() {
        return record_line;
    }

    public void setRecord_line(String record_line) {
        this.record_line = record_line;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getMx() {
        return mx;
    }

    public void setMx(String mx) {
        this.mx = mx;
    }

    public String getTtl() {
        return ttl;
    }

    public void setTtl(String ttl) {
        this.ttl = ttl;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getWeight() {
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }
}
